package com.hb.trade.server.project.opening.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hb.core.pojo.project.opening.dto.OpeningBidTenderDTO;
import com.hb.core.pojo.project.opening.entity.OpeningBidTender;

import java.util.List;

/**
 * 开标大厅投标人记录Service
 *
 * @author Lix1ang
 * @date 2022-2-17 17:06:38
 */
public interface OpeningBidTenderService extends IService<OpeningBidTender> {

    /**
     *
     * @Description: 查询投标人的解密记录
     * @Author: zhongdl
     * @Date:2022/2/24 8:49
     * @param openingBidTender:
     * @return: {@link OpeningBidTender }
     **/
    OpeningBidTender getOpeningBidTenderBySection(OpeningBidTender openingBidTender);

   /**
     *
     * @Description: 查询投标人的解密记录
     * @Author: zhongdl
     * @Date:2022/2/24 8:49
     * @param sectionId:标段id
     * @param orgId:企业id
     * @return: {@link OpeningBidTender }
     **/
    OpeningBidTender getOpeningBidTenderBySection(Long sectionId,Long orgId);


    /**
     * Description: 根据标段id获取该标段下的投标人名称（二轮报价处使用）
     * @author: fengbin
     * @date: 2022/2/24 10:32
     * @param sectionId
     @return: java.util.List<java.lang.Long>
     */
    List<String> listBidderNameBySectionId(Long sectionId);

    /**
     * 根据标段id和投标人id列表查询投标人记录
     * @param sectionId
     * @return
     */
    List<OpeningBidTender> listDecryptedBySectionId(Long sectionId);

    /**
     * @Description: 查询未签章或确认的投标人 query 1 未签章 2 未确认
     *
     * @author yuezheng
     * @param openingBidTenderDTO
     * @return org.fzzn.core.model.msg.Message<java.util.List<com.hb.core.pojo.project.opening.entity.OpeningBidTender>>
     * @date 2022/6/20 16:49
     */
    List<OpeningBidTender> listByNotDecryptOrConfirm(OpeningBidTenderDTO openingBidTenderDTO);
}
